package com.mlnx.work.service;

import com.mlnx.work.entity.Right;
import com.mlnx.work.pojo.form.RightForm;
import com.mlnx.work.pojo.vo.RightVo;

import java.util.List;

/**
 * author name: amanda.shan
 * create time: 2020-12-28 17:09:55
 */ 
public interface RightService extends IBaseService<Right>{

    /**
     * 获取父权限
     * @return
     */
    List<Right> getParentRights();

    /**
     * 获取所有权限
     * @return
     */
    List<RightVo> getAll();

    /**
     * 添加权限
     * @param rightForm
     */
    void add(RightForm rightForm);


    /**
     * 根据用户名获取自身权利
     *
     * @param username
     * @return
     */
    List<Right> getRightsByUserName(String username);

}

